package com.book.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.common.entity.QueryRequest;
import com.book.system.entity.LoginLog;
import com.book.system.entity.SysLog;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.scheduling.annotation.Async;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author: 黄海峰
 * @Description:  20155933
 */

public interface LoginLogService extends IService<LoginLog> {
    // 查询
    List<LoginLog> findAllLogs(LoginLog log);

    // 分页
    IPage<LoginLog> getLogByPage(QueryRequest request, LoginLog log);

    //删除
    void deleteLogs(String[] logIds);

    @Async
    void saveLogin(LoginLog loginLog, HttpServletRequest request) throws JsonProcessingException;


}
